Close the dialog box.